maximum distance between two columns